package com.yesido.javabase.concurrent.threadpool;

/**
 * @author yuliang
 * @description
 * @date 2021/6/20 17:32
 */
public class Task1 implements Runnable {
    private String name;

    public Task1(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        try {
            Thread.sleep(10);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(Thread.currentThread().getName()+"--->"+name);
    }
}
